String appid = 'wx9f7507a78aa0c8f0'
//String r = 'http://tech11.cn/wx/pay/peizi-index?showwxpaytitle=1&timeend=' + System.currentTimeMillis()
//String r = 'http://tech11.cn/wx/pay/bige?showwxpaytitle=1'
//String r = 'http://tech11.cn/wx/ind/shop/1?showwxpaytitle=1&timeend=' + System.currentTimeMillis()

String r = 'http://tech11.cn/wx/ind/shop/index/1?showwxpaytitle=1&timeend=' + System.currentTimeMillis()
r = URLEncoder.encode(r)

String str = """
https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appid}&redirect_uri=${r}&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect
"""

println str